package com.hjm.framework.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
import lombok.Getter;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * Entity基类
 */
public class BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 搜索值 **/
    private String searchValue;

    /** 创建者 **/
    private String createBy;

    /** 创建时间 **/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 **/
    private String updateBy;

    /** 更新时间 **/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 **/
    private String remark;

    /** 请求参数 **/
    private Map<String, Object> params;

    /** 开始日期 **/
    private String startDate;

    /** 结束时间 **/
    private  String endDate;

    @Getter
    private String starts;
    private String start;
    private String end;

    private String start1;
    private  String end1;

    private String start2;
    private String end2;

    @Getter
    private String saleAgentNum;
    private String loginAgentNum;

    @Getter
    private String obj_no;

    public void setObj_no(String obj_no) {
        this.obj_no = obj_no;
    }


    public String getLoginAgentNum() {
        return loginAgentNum;
    }

    public void setLoginAgentNum(String loginAgentNum) {
        this.loginAgentNum = loginAgentNum;
    }


    public void setStarts(String starts) {
        this.starts = starts;
    }

    public void setSaleAgentNum(String saleAgentNum) {
        this.saleAgentNum = saleAgentNum;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public void setStartDate(String startDate){
        this.startDate = startDate;
    }

    public String getStartDate(){
        return startDate;
    }


    public void setEndDate(String endDate){
        this.endDate = endDate;
    }

    public String getEndDate(){
        return endDate;
    }

    public String getSearchValue()
    {
        return searchValue;
    }

    public void setSearchValue(String searchValue)
    {
        this.searchValue = searchValue;
    }

    public String getCreateBy()
    {
        return createBy;
    }

    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getUpdateBy()
    {
        return updateBy;
    }

    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = Maps.newHashMap();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
